home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1998 / MacHack 1998.toast / The Hacks! / COSEmulator / COSEmulator- SRC / headers / Window.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-06-21  |  1.1 KB  |  53 lines  |  [TEXT/CWIE]

  1. #ifndef _Window_h_
  2. #define _Window_h_
  3.  
  4. #include "Blitters.h"
  5.  
  6. class    Window;
  7. class    Window
  8. {
  9. public:
  10.     Window( void );
  11.     ~Window( void );
  12.     
  13.     virtual    Boolean    Init( void );
  14.     
  15.     virtual    void    HandleMouseClick( Boolean down , point where );
  16.     virtual    void    HandleMouseMove( point where );
  17.     virtual    Boolean    PointInWindow( point where );
  18.  
  19.     virtual    Boolean    Front( void );    
  20.     virtual    void    SetFront( Boolean f );
  21.     
  22.     virtual    void    DrawToScreen( rect *where , Boolean backGround = false );
  23.     
  24.     void            HideWindow( Boolean h );
  25.     void            ShadeWindow( Boolean s );
  26.     
  27.     void            SetLocation( short x, short y );
  28.     point            GetLocation( void );
  29.     
  30.     void            AddToUpdate( void );
  31.     
  32.     Window            *next;
  33.     Window            *previous;
  34. protected:
  35.     void            HandleDrag( point where );
  36.  
  37. //
  38.     Boolean            dragable;        // can it be draged or not
  39.     Boolean            draging;
  40.     point            start;
  41.  
  42. //
  43.     short            width;
  44.     short            height;
  45.     
  46.     OffScreenBuff    window;
  47.     rect            screenLoc;        // where it is in the screen
  48.     Boolean            front;            // if it is the front window or not
  49.     Boolean            shaded;            // if the window is shaded or not
  50.     Boolean            hiden;            // hiden or not
  51. };
  52.  
  53. #endif